<template>
  <view class="order-entry">
    <button class="button" size="mini" type="primary" @click="() => handleToOrder('create')">我下的单</button>
    <button class="button" size="mini" type="warn" @click="() => handleToOrder('recevie')">我接的单</button>
  </view>
</template>

<script setup>
const  handleToOrder = type => uni.navigateTo({ url: `/pages/order/order?type=${type}` })
</script>


<style scoped lang="scss">
uni-page-body {
  background-color: $u-primary-light;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.order-entry {
  height: 120rpx;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
</style>
